<?php

namespace app\purchase\model;

use think\Db;

class OrderLog extends \ShopModel
{
    protected $table = 'sh_order_operate_log';

    protected $pk = 'log_id';

    protected $autoWriteTimestamp = true;
    protected $updateTime = false;
    protected $createTime = 'create_at';
    public function OrderLogDb(){
        return Db::name('order_operate_log');
    }
    public function add($data){
        $OrderLogDb = $this->OrderLogDb();
        $OrderLogDb->insert($data);
    }
}
